package project.bitmap.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import project.bitmap.domain.Sign;
import project.bitmap.service.SignService;

@RestController
@RequestMapping("/sign")
public class SignController {
    @Autowired
    private SignService service;

    @PostMapping
    public Object doSignIn(@RequestBody Sign sign){
        return service.doSign(sign.getUserId(),sign.getDateStr());
    }
}